<?php

namespace App\Http\Controllers\Member;

use App\Models\Category;
use App\Models\CompanyProfile;
use App\Http\Controllers\Core\HomeController as Home;
use App\Models\Member;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;

class InfoController extends Home
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */

    public function store()
    {
        if (!$this->isLogin()) {
            return redirect('login');
        }
        if ($this->member->type != 2) {
            return redirect('login');
        }
        return view('member.info.edit');
    }
}